package top.douma.services;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import top.mybatis.entitys.User;
import top.mybatis.mapper.UserMapper;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author Administrator
 * @version 1.0
 * @email lzjg1314@163.com
 * @date 2018/11/12
 */
@Component("top.douma.services.AA")
public class AA {
  
  @Resource
  UserMapper userMapper;
  
  public void regAndLog() {
    List<User> users = userMapper.selectAll();
    System.out.println(users.toString());
    System.out.println("----------------------------asdfasdfasdfasdfasdf");

    
  }
  
  public int addUser(String id) {
    return 1;
  }
}
